{extend name="index/index" /}

    <!--头部结束-->
    {block name="main"}

    
    <div id="wp" class="wp" style="margin: 0 auto;
    width: 960px;">
<div id="pt" class="bm cl"><div id="sc" class="y">
<form id="sc_form" method="post" autocomplete="off" onsubmit="searchFocus($('srchtxt'))" action="http://bbs.duowan.com/search.php?searchsubmit=yes"    target="_blank">
<input type="hidden" name="formhash" value="f824cf4c">
<input type="hidden" name="mod" id="sc_mod" value="title">
<input type="hidden" name="srhfid" value="0">
<input type="hidden" name="srhlocality" value="home::spacecp">
<table cellspacing="0" cellpadding="0">
<tbody><tr>
<td id="sc_txt_td"><input type="text" name="srchtxt" id="sc_txt" class="px z" value="请输入搜索内容" autocomplete="off"></td>
<td id="sc_type_td"><span id="sc_type_w" class="px z"><a href="javascript:;" id="sc_type" class="showmenu xg1" onclick="showMenu(this.id);">搜索</a></span></td>
<td id="sc_btn_td"><button type="submit" name="searchsubmit" id="sc_btn" class="pn pnc" value="true"><strong>搜索</strong></button></td>
</tr>
</tbody></table>
</form>
<script type="text/javascript">initSearchmenu('scbar', '');</script>
</div>
<div class="z">
<a href="http://bbs.duowan.com/" class="nvhm" title="首页">多玩游戏论坛</a> <em>›</em>
<a href="http://bbs.duowan.com/home.php?mod=spacecp">设置</a> <em>›</em>个人资料
</div>
</div>
<div id="ct" class="ct2_a wp cl" style="    min-height: 300px;">
<div class="mn" style="padding: 15px 0 5px 0;
    margin-right: 15px;
    width: 795px;">
<div class="bm bw0">
<h1 class="mt">个人资料
</h1>
<!--don't close the div here--><ul class="tb cl">
<li class="a"><a href="http://bbs.duowan.com/home.php?mod=spacecp&amp;ac=profile&amp;op=base">基本资料</a></li>
<li><a href="http://bbs.duowan.com/home.php?mod=spacecp&amp;ac=profile&amp;op=contact">联系方式</a></li>
<li><a href="http://bbs.duowan.com/home.php?mod=spacecp&amp;ac=profile&amp;op=info">个人信息</a></li>
</ul><iframe id="frame_profile" name="frame_profile" style="display: none"></iframe>

<form action="{url('')}" method="post" enctype="multipart/form-data" autocomplete="off" target="frame_profile"    style="padding-left: 20px;">
    <input type="hidden" value="f824cf4c" name="formhash">
        <table cellspacing="0" cellpadding="0" class="tfm" id="profilelist">
        <tbody><tr>
            <th>用户名 :</th>
                <td>{$sql.nick}</td>
                    <td>&nbsp;</td>
                        </tr><tr id="tr_realname">
                <th id="th_realname">修改用户名 :</th>
        <td id="td_realname">
    <input type="text" name="nick" class="px"  required=""  maxlength="12"  placeholder="输入新用户名" value="" tabindex="1"><div class="rq mtn" id="showerror_realname"></div><p class="d"></p></td>

    </select>
</td>
</tr>
    <tr id="tr_gender">
        <th id="th_gender">性别 :</th>
        <td id="td_gender">
            <select name="sex" id="gender" class="ps" tabindex="1">
            {if $sql.sex == 0}
                    <option value="0" >保密</option>
                    <option value="1">男</option>
                    <option value="2">女</option>
            {elseif $sql.sex == 1}
                <option value="1">男</option>
                <option value="2">女</option>
                <option value="0" >保密</option>

            {else /}
                <option value="2">女</option>
                <option value="1">男</option>
                <option value="0" >保密</option>
            {/if}
            
            
            

        </td>
    </tr>
<tr id="tr_birthday">
<th id="th_birthday">年龄</th>
<td id="td_realname">
<input type="text" name="age" class=""  required=""   maxlength="3"  placeholder="输入您的年龄"  value="" tabindex="1"><div class="rq mtn" id="showerror_realname"></div></td>

</tr>
<tr>
<th>&nbsp;</th>
<td colspan="2">
<input type="hidden" name="profilesubmit" value="true">
<button type="submit"   value="true" class="pn pnc"><strong>保存</strong></button>
<span id="submit_result" class="rq"></span>
</td>
</tr>
</tbody></table>
</form>
<script type="text/javascript">
function show_error(fieldid, extrainfo) {
var elem = $('th_'+fieldid);
if(elem) {
elem.className = "rq";
fieldname = elem.innerHTML;
extrainfo = (typeof extrainfo == "string") ? extrainfo : "";
$('showerror_'+fieldid).innerHTML = "请检查该资料项 " + extrainfo;
$(fieldid).focus();
}
}
function show_success(message) {
message = message == '' ? '资料更新成功' : message;
showDialog(message, 'right', '提示信息', function(){
top.window.location.href = top.window.location.href;
}, 0, null, '', '', '', '', 3);
}
function clearErrorInfo() {
var spanObj = $('profilelist').getElementsByTagName("div");
for(var i in spanObj) {
if(typeof spanObj[i].id != "undefined" && spanObj[i].id.indexOf("_")) {
var ids = explode('_', spanObj[i].id);
if(ids[0] == "showerror") {
spanObj[i].innerHTML = '';
$('th_'+ids[1]).className = '';
}
}
}
}
</script>
</div>
</div>
<div class="appl" style=" margin-left: -138px;margin-bottom: 0px;"><div class="tbn">
<h2 class="mt bbda">设置</h2>
<ul>
<li><a href="http://bbs.duowan.com/home.php?mod=spacecp&amp;ac=avatar">&nbsp;修改头像</a></li>
<li class="a"><a href="http://bbs.duowan.com/home.php?mod=spacecp&amp;ac=profile">&nbsp;个人资料</a></li>
<!-- <li><a href="home.php?mod=spacecp&ac=profile&op=verify">认证</a></li> -->
<li><a href="http://bbs.duowan.com/home.php?mod=spacecp&amp;ac=credit">&nbsp;积分</a></li>
<li><a href="http://bbs.duowan.com/home.php?mod=spacecp&amp;ac=usergroup">&nbsp;用户组</a></li>
<li><a href="http://bbs.duowan.com/home.php?mod=spacecp&amp;ac=profile&amp;op=password" target="_blank">&nbsp;密码安全</a></li>

<li><a href="http://bbs.duowan.com/home.php?mod=spacecp&amp;ac=promotion">&nbsp;访问推广</a></li>
<li><a href="http://bbs.duowan.com/plugin.php?id=dwauth:flower&amp;action=setting">&nbsp;软妹名片设置</a></li>
</ul>
</div></div>
</div>  </div>


        {/block}